<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script>
	//小球和砖块的碰撞   以小球为基准  遍历所有砖块
	for(var i = 0 ; i < list.length ; i++){
		if(that.ball.offsetTop<=list[i].offsetTop+list[i].offsetHeight){
			if(that.ball.offsetLeft>=list[i].offsetLeft){
				if(that.ball.offsetLeft+that.ball.offsetWidth<=list[i].offsetLeft+list[i].offsetWidth){
					that.fy = 1;
					list[i].style.display = "none";
					score++;
					$("score").innerHTML = `游戏得分: ${score}分`;
				}
			}
		}
	}

</script>